const NewCorporatePaymentReportComp = (location,callback) => {
  require.ensure([], require => {
    callback(null, require("containers/corporate-payment-report/new-corporate-payment-report").default);
  },"new-corporate-payment-report")
};
const CorporatePaymentReportDetailComp = (location,callback) => {
  require.ensure([], require => {
    callback(null, require("containers/corporate-payment-report/detail/index").default);
  },"corporate-payment-report-detail")
};
const CorporatePaymentReportListComp = (location,callback) => {
  require.ensure([], require => {
    callback(null, require("containers/corporate-payment-report/corporate-payment-report-list").default);
  },"corporate-payment-report")
};


//对公业务单
const corporatePaymentReport = {
  key: 'corporate-payment-report',
  url: '/main/corporate-payment-report',
  components: CorporatePaymentReportListComp,
  children: {
    //报销单详情
    corporatePaymentReportDetail: {
      key: 'corporate-payment-report-detail',
      url: '/main/corporate-payment-report/corporate-payment-report-detail/:expenseReportOID/:entry',
      components: CorporatePaymentReportDetailComp,
      parent: 'corporate-payment-report'
    },
    //报销单新建
    newCorporatePaymentReport: {
      key: 'new-corporate-payment-report',
      url: '/main/corporate-payment-report/new-corporate-payment-report/:formId/:userOID/:applicationOID/:applicantJobId',
      components: NewCorporatePaymentReportComp,
      parent: 'corporate-payment-report'
    }
  }
};

export default corporatePaymentReport
